using System;

namespace BTEditor
{
    [BTDecorator]
    public class Inverter : Decorator
    {
        public override Type GetNodeType()
        {
            return typeof(NPBehave.Inverter);
        }

        public override ErrorType GetIsVaild()
        {
            return BelongNode.IsHaveChild ? ErrorType.None : ErrorType.Error;
        }
    }
}